<?php
$name=$_POST["name"];
	mysql_connect("localhost","root","");
	$ten=mysql_query("SELECT ten FROM ajax.thanh_vien WHERE username='$name'");
	$sodong=mysql_num_rows($ten);
	if($name==NULL)
	{
		echo "M&#7901;i b&#7841;n khai b&#225;o t&#234;n t&#224;i kho&#7843;n.";
	}
	else
	{
		if($sodong==0)
		{
			echo ("<font color='blue'><b>".$name."</b>".". Ch&#432;a ai s&#7903; h&#7919;u. B&#7841;n  c&#243; th&#7875; s&#7919; d&#7909;ng t&#234;n n&#224;y.</font>");
		}
		else
		{
			echo ("<font color='red'><b>".$name."</b>".". &#272;&#227; c&#243; ng&#432;&#7901;i s&#7903; h&#7919;u. B&#7841;n vui l&#242;ng chon t&#234;n kh&#225;c.</font>");
		}
	}
?>